package u17.dao;

import java.util.List;

import u17.model.User;

public interface UserMapper {
	//根据ID删除玩家
    int deleteByPrimaryKey(Integer yid) throws Exception;

    //添加玩家  玩家信息必须全部都有
    int insert(User record) throws Exception;

    //添加玩家  判断添加是否有值
    int insertSelective(User record) throws Exception;

    //根据ID查询玩家
    User selectByPrimaryKey(Integer yid) throws Exception;

    //修改玩家信息
    int updateByPrimaryKeySelective(User record) throws Exception;

    //修改玩家信息
    int updateByPrimaryKey(User record) throws Exception;
    
    //获取所有玩家信息
    List<User> getAllUser() throws Exception;
    
    //根据批量ID删除
    int deleteInId(String ids) throws Exception;
    
    //根据条件查询用户总数
    int queryUserCount(User user) throws Exception;
    
    //根据条件分页查询用户
    List<User> queryUserPager(User user) throws Exception;
}